package com.blog.personalblog.service;

import com.blog.personalblog.config.page.PageRequest;
import com.blog.personalblog.entity.Tag;

import java.util.List;

public interface TagService {
    List<Tag> getTagPage(PageRequest pageRequest);
    int createTag(Tag tag);
    int updateTag(Tag tag);
    void deleteTag(Integer id);
    Tag getTagById(Integer id);
    boolean batchAddTag(String tags) throws  Exception;
    Tag getTagByName(String tagName);
}
